package cn.com.surker.material.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 材料运输车辆表
 * </p>
 *
 * @author admin
 * @since 2024-06-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class MainMaterialTransportCar implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 材料合同ID
     */
    private Long contractId;

    /**
     * 车牌号
     */
    private String carNo;
    /**
     * 统计月份
     */
    private String today;
    /**
     * 服务开始时间
     */
    private String startTime;
    /**
     * 服务结束时间
     */
    private String endTime;

    /**
     * 托运商ID
     */
    private Long supplierId;

//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
//    private Date takeTime;

    /**
     * 最新皮重
     */
    private Double tare;

    /**
     * 状态(0:启用1：禁用)
     */
    private Integer status;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建人
     */
    private String creator;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

    /**
     * 修改人
     */
    private String updator;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date updateTime;

    public MainMaterialTransportCar(){}

    public MainMaterialTransportCar(Long contractId, String carNo, String today, String startTime, String endTime,
                                    Double tare, Integer status, String remark, String creator, Date createTime,
                                    Long supplierId) {
        this.contractId = contractId;
        this.carNo = carNo;
        this.today = today;
        this.startTime = startTime;
        this.endTime = endTime;
        this.tare = tare;
        this.status = status;
        this.remark = remark;
        this.creator = creator;
        this.createTime = createTime;
        this.supplierId = supplierId;
    }
}
